home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1988 / Aug-Sep 88 / PerformPrinting bug ⁄ 09.07.88 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.2 KB  |  42 lines  |  [TEXT/GEOL]

  1. Item    0183426                         7-Sept-88        10:17
  2.  
  3. From:   HOL0074                         Winsoft, Pierre Blangero
  4.  
  5. To:     MACAPP.TECH$                    MACAPP Tech
  6.  
  7. Sub:    PerformPrinting bug
  8.  
  9.  
  10. Hi,
  11.  
  12. 'Thank you' to all whos participate to the discussion about the 'Folder
  13. vRefNum'. Your contributions give us the necessary to make our features working
  14. well and make the file manager less mysterious.
  15.  
  16. Here is now a bug that we discover recently in the MacApp source code.
  17. Version 1.1.1
  18. What is the problem : a boolean var parametre is never correctly assigned.
  19.  
  20. object  :   TStdPrintHandler
  21. methode :   TStdPrintHandler.PerformPrinting
  22. cencerned param : VAR proceed : BOOLEAN
  23.  
  24. Inside this methode there is a procedure named : DoPrint that redeclare the
  25. same variable as a local param and assign this copy.
  26.  
  27. This param seems to be never tested in the standard situation but be carfull
  28. when you call TStdPrintHandler.PerformPrinting directly, the value returned in
  29. the VAR param Proceed will be TRUE in all situation including when the user
  30. cancel the printing.
  31.  
  32. Fixing this bug is simple. just remove the local declaration of the boolean
  33. Proceed inside DoPrint.
  34.  
  35. Bye,
  36. Kamel
  37.  
  38.  
  39.  
  40.  
  41.  
  42.